<%@LANGUAGE="VBSCRIPT" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Help Main</title>
<link href="UniversalStyleSheet.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="100%" height="40" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td background="Images/HeaderBG2.png"><img src="Images/LeftArrow.gif" alt="Back" name="BtnBack" width="35" height="35" id="BtnBack" onclick="javascript:history.go(-1)"/> 
	<img src="Images/RightArrow.gif" alt="Forward" name="BtnForward" width="35" height="35" border="0" id="BtnForward" onclick="javascript:history.go(1)"/></td>
  </tr>
</table>
<p>&nbsp;</p>
<p>
  <%
subject=request.QueryString("subject")
if subject="" then
%>
    <span class="TableTitles">Welcome to the HomeSmart Afterhours application help.<br/>
    To get started, simply choose the subject or task you are looking for from the navigation panel on the left.</span>
  <%
else
	dim db,rs
	set db=server.CreateObject("adodb.connection")
	set rs=server.CreateObject("adodb.recordset")
	FilePath=server.MapPath("access/backend/help.mdb")
	db.open ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & FilePath)
	sql="select * from HelpTopics where id=" & subject
	rs.open sql,db,1,2
	
	title=server.HTMLEncode(rs("title"))
	title=replace(title,chr(13),"<br/>")
	title=replace(title,chr(10),"<br/>")
	
	body=rs("body")
	body=replace(body,chr(13),"")
	body=replace(body,chr(10),"<br/>")
	
	rs.close
	db.close
	set rs=nothing
	set db=nothing
%>
  <span class="ContractorDisplay"><%= title %></span>
  <br/>
  <br/>
  <span class="TableTitles"><%= body %>
  <%
end if
%>
</p>
</body>
</html>
